package demo01;

import java.util.ArrayList;

public class Homework6 {
	public static void main(String[] args) {
		int[] arr1={1,2,3};
		int[] arr2={3,4,5,2};
		ArrayList<Integer> arr=new ArrayList<>();
		for(Integer aa:arr1){
			arr.add(aa);
		}
		for(Integer aa:arr2){
			if(arr.contains(aa)){
				arr.remove(aa);
			}else{
				arr.add(aa);
			}
		}
		System.out.println(arr);
	}
}
